package ck.com.api;

import ck.com.dto.Dto;
import ck.com.pojo.CountOrderUtil;
import ck.com.pojo.Countorder;
import ck.com.pojo.CountorderDetail;
import ck.com.pojo.addCountOrderUtil;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;
@RequestMapping("/checkApi")
public interface CheckApi {

    @RequestMapping("getListByStock")
    Dto<List<CountOrderUtil>> getListByStock(@RequestBody Map<String, Object> params);

    @RequestMapping("getListByFlag")
    Dto<List<CountOrderUtil>> getListByFlag(@RequestBody Map<String,Object> params);

    @RequestMapping("addCountOrder")
    Dto<Integer> addCountOrder(@RequestBody addCountOrderUtil addCountOrderUtil);

    @RequestMapping("updateStatus")
    Dto<Integer> setGoodsLockStatus(@RequestBody List<Integer> goodsId);

    @RequestMapping("getCountOrderList")
    Dto<List<Countorder>> getCountOrderList(@RequestBody Map<String,Object> params);

    @RequestMapping("getOrderCount")
    Dto<Integer> OrderCount(@RequestBody Map<String,Object> params);

    @RequestMapping("getOrderDetailList")
    Dto<List<CountorderDetail>>  getDetailList(@RequestBody Map<String,Object> params);
}
